Optimal. Leaf size=14 \[ \tan ^{-1}\left (\frac{\tan (x)}{\sqrt{\tan ^2(x)+2}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0197271, antiderivative size = 14, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 10, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.3, Rules used = {4128, 377, 203} \[ \tan ^{-1}\left (\frac{\tan (x)}{\sqrt{\tan ^2(x)+2}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4128
Rule 377
Rule 203
Rubi steps
\begin{align*} \int \frac{1}{\sqrt{1+\sec ^2(x)}} \, dx &=\operatorname{Subst}\left (\int \frac{1}{\left (1+x^2\right ) \sqrt{2+x^2}} \, dx,x,\tan (x)\right )\\ &=\operatorname{Subst}\left (\int \frac{1}{1+x^2} \, dx,x,\frac{\tan (x)}{\sqrt{2+\tan ^2(x)}}\right )\\ &=\tan ^{-1}\left (\frac{\tan (x)}{\sqrt{2+\tan ^2(x)}}\right )\\ \end{align*}
Mathematica [B] time = 0.025263, size = 37, normalized size = 2.64 \[ \frac{\sin ^{-1}\left (\frac{\sin (x)}{\sqrt{2}}\right ) \sqrt{\cos (2 x)+3} \sec (x)}{\sqrt{2} \sqrt{\sec ^2(x)+1}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.227, size = 142, normalized size = 10.1 \begin{align*}{\frac{ \left ( -{\frac{1}{2}}+{\frac{i}{2}} \right ) \left ( \sin \left ( x \right ) \right ) ^{2}}{\cos \left ( x \right ) \left ( -1+\cos \left ( x \right ) \right ) }\sqrt{{\frac{i\cos \left ( x \right ) +1-i+\cos \left ( x \right ) }{\cos \left ( x \right ) +1}}}\sqrt{-{\frac{i\cos \left ( x \right ) -1-i-\cos \left ( x \right ) }{\cos \left ( x \right ) +1}}} \left ( 2\, \left ( -1 \right ) ^{3/4}{\it EllipticPi} \left ({\frac{\sqrt [4]{-1} \left ( -1+\cos \left ( x \right ) \right ) }{\sin \left ( x \right ) }},i,i \right ) -2\,\sqrt [4]{-1}{\it EllipticPi} \left ({\frac{\sqrt [4]{-1} \left ( -1+\cos \left ( x \right ) \right ) }{\sin \left ( x \right ) }},i,i \right ) +\sqrt{2}{\it EllipticF} \left ({\frac{ \left ({\frac{1}{2}}+{\frac{i}{2}} \right ) \sqrt{2} \left ( -1+\cos \left ( x \right ) \right ) }{\sin \left ( x \right ) }},i \right ) \right ){\frac{1}{\sqrt{{\frac{ \left ( \cos \left ( x \right ) \right ) ^{2}+1}{ \left ( \cos \left ( x \right ) \right ) ^{2}}}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.78543, size = 524, normalized size = 37.43 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 0.509012, size = 177, normalized size = 12.64 \begin{align*} \frac{1}{2} \, \arctan \left (\frac{\sqrt{\frac{\cos \left (x\right )^{2} + 1}{\cos \left (x\right )^{2}}} \cos \left (x\right )^{3} \sin \left (x\right ) + \cos \left (x\right ) \sin \left (x\right )}{\cos \left (x\right )^{4} + \cos \left (x\right )^{2} - 1}\right ) - \frac{1}{2} \, \arctan \left (\frac{\sin \left (x\right )}{\cos \left (x\right )}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{1}{\sqrt{\sec ^{2}{\left (x \right )} + 1}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{1}{\sqrt{\sec \left (x\right )^{2} + 1}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]